From 845d2e5433724375176f202e42fcc24430c1ce55 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Tue, 24 Nov 2020 18:04:34 +0100 Subject: [PATCH] TreeModel: add missing nullability annotations --- gtk/gtktreemodel.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c index 377a365d7b..0eef6a6474 100644 --- a/gtk/gtktreemodel.c +++ b/gtk/gtktreemodel.c @@ -731,9 +731,10 @@ gtk_tree_path_new_from_indicesv (int *indices, * * This string is a “:” separated list of numbers. * For example, “4:10:0:3” would be an acceptable - * return value for this string. + * return value for this string. If the path has + * depth 0, %NULL is returned. * - * Returns: A newly-allocated string. + * Returns: (nullable): A newly-allocated string. * Must be freed with g_free(). */ char * @@ -1316,7 +1317,7 @@ gtk_tree_model_get_iter_from_string (GtkTreeModel *tree_model, * For example, “4:10:0:3” would be an acceptable * return value for this string. * - * Returns: a newly-allocated string. + * Returns: (nullable): a newly-allocated string. * Must be freed with g_free(). */ char * -- 2.30.2